<table style="width: 100%;" cellpadding="4" cellspacing="0">
	<tr>
		<td class="border2">

			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header">{$sBoxTitle}</td>
				</tr>
			</table>
			<br />
<div style="padding-left: 30px; font-size: 10pt; font-weight: bold;">{messages}</div>
{if $aMessenger.0}
<!-- Start page navigation info -->
<table style="width: 100%;">
<tr>
    <td style="width: 50%; font-size: 9pt; text-align: left;" class="color">{str_replace text="`viewing_apaging_fromrow_apaging_tor_589`" aPaging_fromRow="`$aPaging.fromRow`" aPaging_toRow="`$aPaging.toRow`" aPaging_totalRows="`$aPaging.totalRows`" }</td>
    <td style="width: 50%; font-size: 9pt;" class="color"></td>
</tr>
</table>
<!-- End page navigation info -->
<br /><br />
<!-- Start inbox messages -->
<form name="myform" action="{$sUrl}" method="post">
{foreach from=$aMessenger item=aItem name=messages}
<table style="width: 100%; margin-bottom: 3px;" class="{if $smarty.foreach.messages.iteration % 2}border13{else}border2{/if}" cellpadding="2" cellspacing="2">
<tbody>

    <tr>
        <td style="font-size: 8pt; width: 5%; text-align: center;" class="color">
            <input name="id[]" value="{$aItem.id}" type="checkbox" style="border:0" />
        </td>
        <td style="font-size: 8pt; width: 15%; text-align: center;">
        {if $sBoxName == 'sentbox'}
            {assign var="sUs" value=$aItem.to}
        {else}
            {assign var="sUs" value=$aItem.from}
        {/if}
        {if $sUs!='System'}
            <a href="{url link=public.user name=$sUs}">
            {Account::Avatar sUser=$sUs iSize=50 class="pic1" onmouseover="showInfo5('`$sUs`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
            </a>
        {else}
        <img src="/design/pic/noimage_50.jpg">	
        {/if}
        </td>
        <td style="font-size: 7pt; width: 80%;">

			<a class="link_description" href="{url link=$sUrlView box=$sBoxName id=$aItem.id}">{$aItem.title|process_code|default}
				{if !$aItem.seen}<span style="font-size: 8pt;">{if $sBoxName == 'sentbox'}( {language text="unread"} ){else}( {language text="new"} ){/if}</span>{/if}</a>

            <br /><br />
            {if $sBoxName == 'sentbox'}{language text="to"}{else}{language text="from_503"}{/if}{if $sUs!='System'}<a class="link_description_small" href="{url link=public.user name=$sUs}">{if $sBoxName == 'sentbox'} {$aItem.to}{else} {$aItem.from}{/if}</a>{else} <b>System</b>{/if} {language text="on_605"} {$aItem.time|date_format:$sDateTimeFormat}
        </td>
    </tr>
</tbody>
</table>
{/foreach}
<br />
<br />
{include file="$sMainTemplatePath/_blocks/pager.html"}
<br />
<br />
<input value="{language text="delete_message_s"}" type="submit" onclick="return checkEmpty();" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />&nbsp;
<a href="javascript:void(0);" class="link_action" onclick="sel();">[ {language text="check_all"} ]</a>
</form>
<!-- End inbox messages -->
{else}
<div class="message_info">{language text="there_are_no_messages_yet"}</div>
{/if}

		</td>
	</tr>
</table>